<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ffilt</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>ffilt</b> -  coefficients of FIR low-pass</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[x]=ffilt(ft,n,fl,fh)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>ft</b>
        </tt>: filter type where <tt>
          <b>ft</b>
        </tt> can take the values<ul>
          <li>
            <tt>
              <b>"lp"  </b>
            </tt>: for low-pass filter</li>
          <li>
            <tt>
              <b>"hp"  </b>
            </tt>: for high-pass filter</li>
          <li>
            <tt>
              <b>"bp"  </b>
            </tt>: for band-pass filter</li>
          <li>
            <tt>
              <b>"sb"  </b>
            </tt>: for stop-band filter</li>
        </ul>
      </li>
      <li>
        <tt>
          <b>n</b>
        </tt>: integer (number of filter samples desired)</li>
      <li>
        <tt>
          <b>fl</b>
        </tt>: real (low frequency cut-off)</li>
      <li>
        <tt>
          <b>fh</b>
        </tt>: real (high frequency cut-off)</li>
      <li>
        <tt>
          <b>x</b>
        </tt>: vector of filter coefficients</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Get <tt>
        <b>n</b>
      </tt> coefficients of a FIR low-pass,
    high-pass, band-pass, or stop-band filter.
    For low and high-pass filters one cut-off
    frequency must be specified whose value is
    given in <tt>
        <b>fl</b>
      </tt>. For band-pass and stop-band
    filters two cut-off frequencies must be
    specified for which the lower value is in
    <tt>
        <b>fl</b>
      </tt> and the higher value is in <tt>
        <b>fh</b>
      </tt>
    </p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>C. B.  </p>
  </body>
</html>
